'use strict';

const Controller = require('egg').Controller;

class NewController extends Controller {
  async index() {
    let  newsList = await this.service.news.getNewsList();
    this.ctx.body = newsList;
  }
}

module.exports = NewController;
